package edu.unindra.elearning.form.addin;

import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.Insets;

import javax.swing.ImageIcon;
import javax.swing.SwingConstants;

import usu.widget.Panel;
import edu.unindra.elearning.util.ButtonImageReflection;

public class ELearningFormSubMainMateri extends Panel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1320811678631342254L;

	private GridBagConstraints grid1;
	private GridBagConstraints grid2;

	private ButtonImageReflection btnBhsIndo;
	private ButtonImageReflection btnBhsEnglish;
	private ButtonImageReflection btnBhsMtk;

	public ELearningFormSubMainMateri() {
		initComponents();
	}

	public ButtonImageReflection getBtnBhsIndo() {
		return btnBhsIndo;
	}

	public ButtonImageReflection getBtnBhsEnglish() {
		return btnBhsEnglish;
	}

	public ButtonImageReflection getBtnMtk() {
		return btnBhsMtk;
	}

	private void initComponents() {
		setOpaque(false);
		setLayout(new java.awt.GridBagLayout());

		btnBhsIndo = new ButtonImageReflection();
		btnBhsIndo.setFont(new Font("Tahoma", Font.BOLD, 14));
		btnBhsIndo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
		btnBhsIndo.setIcon(new ImageIcon(ELearningFormSubMainMateri.class
				.getResource("/edu/unindra/elearning/image/bhsindo.png")));
		btnBhsIndo.setText("Bahasa Indonesia");
		GridBagConstraints gbc_btnFirst = new GridBagConstraints();
		gbc_btnFirst.insets = new Insets(0, 0, 5, 5);
		gbc_btnFirst.gridx = 1;
		gbc_btnFirst.gridy = 0;
		add(btnBhsIndo, gbc_btnFirst);

		btnBhsEnglish = new ButtonImageReflection();
		btnBhsEnglish.setVerticalAlignment(SwingConstants.BOTTOM);
		btnBhsEnglish.setSelectedIcon(null);
		btnBhsEnglish.setFont(new Font("Tahoma", Font.BOLD, 14));
		btnBhsEnglish.setHorizontalAlignment(SwingConstants.TRAILING);
		btnBhsEnglish.setIcon(new ImageIcon(ELearningFormSubMainMateri.class
				.getResource("/edu/unindra/elearning/image/bhsinggris.png")));
		btnBhsEnglish.setText("Bahasa Inggris");
		grid1 = new java.awt.GridBagConstraints();
		grid1.insets = new Insets(0, 0, 5, 5);
		grid1.gridx = 2;
		grid1.gridy = 0;
		add(btnBhsEnglish, grid1);

		btnBhsMtk = new ButtonImageReflection();
		btnBhsMtk.setVerticalAlignment(SwingConstants.BOTTOM);
		btnBhsMtk.setSelectedIcon(null);
		btnBhsMtk.setFont(new Font("Tahoma", Font.BOLD, 14));
		btnBhsMtk.setHorizontalAlignment(SwingConstants.TRAILING);
		btnBhsMtk.setIcon(new ImageIcon(ELearningFormSubMainMateri.class
				.getResource("/edu/unindra/elearning/image/mtk.png")));
		btnBhsMtk.setText("Matematika");
		grid2 = new java.awt.GridBagConstraints();
		grid2.insets = new Insets(0, 0, 5, 5);
		grid2.gridx = 3;
		grid2.gridy = 0;
		add(btnBhsMtk, grid2);

	}
}
